home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / SCSL / zsptrf.z / zsptrf
Encoding:
Text File  |  2002-10-03  |  6.4 KB  |  199 lines

  1.  
  2.  
  3.  
  4. ZZZZSSSSPPPPTTTTRRRRFFFF((((3333SSSS))))                                                          ZZZZSSSSPPPPTTTTRRRRFFFF((((3333SSSS))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      ZSPTRF - compute the factorization of a complex symmetric matrix A stored
  10.      in packed format using the Bunch-Kaufman diagonal pivoting method
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      SUBROUTINE ZSPTRF( UPLO, N, AP, IPIV, INFO )
  14.  
  15.          CHARACTER      UPLO
  16.  
  17.          INTEGER        INFO, N
  18.  
  19.          INTEGER        IPIV( * )
  20.  
  21.          COMPLEX*16     AP( * )
  22.  
  23. IIIIMMMMPPPPLLLLEEEEMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN
  24.      These routines are part of the SCSL Scientific Library and can be loaded
  25.      using either the -lscs or the -lscs_mp option.  The -lscs_mp option
  26.      directs the linker to use the multi-processor version of the library.
  27.  
  28.      When linking to SCSL with -lscs or -lscs_mp, the default integer size is
  29.      4 bytes (32 bits). Another version of SCSL is available in which integers
  30.      are 8 bytes (64 bits).  This version allows the user access to larger
  31.      memory sizes and helps when porting legacy Cray codes.  It can be loaded
  32.      by using the -lscs_i8 option or the -lscs_i8_mp option. A program may use
  33.      only one of the two versions; 4-byte integer and 8-byte integer library
  34.      calls cannot be mixed.
  35.  
  36. PPPPUUUURRRRPPPPOOOOSSSSEEEE
  37.      ZSPTRF computes the factorization of a complex symmetric matrix A stored
  38.      in packed format using the Bunch-Kaufman diagonal pivoting method:
  39.         A = U*D*U**T  or  A = L*D*L**T
  40.  
  41.      where U (or L) is a product of permutation and unit upper (lower)
  42.      triangular matrices, and D is symmetric and block diagonal with 1-by-1
  43.      and 2-by-2 diagonal blocks.
  44.  
  45.  
  46. AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  47.      UPLO    (input) CHARACTER*1
  48.              = 'U':  Upper triangle of A is stored;
  49.              = 'L':  Lower triangle of A is stored.
  50.  
  51.      N       (input) INTEGER
  52.              The order of the matrix A.  N >= 0.
  53.  
  54.      AP      (input/output) COMPLEX*16 array, dimension (N*(N+1)/2)
  55.              On entry, the upper or lower triangle of the symmetric matrix A,
  56.              packed columnwise in a linear array.  The j-th column of A is
  57.              stored in the array AP as follows:  if UPLO = 'U', AP(i + (j-
  58.              1)*j/2) = A(i,j) for 1<=i<=j; if UPLO = 'L', AP(i + (j-1)*(2n-
  59.              j)/2) = A(i,j) for j<=i<=n.
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. ZZZZSSSSPPPPTTTTRRRRFFFF((((3333SSSS))))                                                          ZZZZSSSSPPPPTTTTRRRRFFFF((((3333SSSS))))
  71.  
  72.  
  73.  
  74.              On exit, the block diagonal matrix D and the multipliers used to
  75.              obtain the factor U or L, stored as a packed triangular matrix
  76.              overwriting A (see below for further details).
  77.  
  78.      IPIV    (output) INTEGER array, dimension (N)
  79.              Details of the interchanges and the block structure of D.  If
  80.              IPIV(k) > 0, then rows and columns k and IPIV(k) were
  81.              interchanged and D(k,k) is a 1-by-1 diagonal block.  If UPLO =
  82.              'U' and IPIV(k) = IPIV(k-1) < 0, then rows and columns k-1 and
  83.              -IPIV(k) were interchanged and D(k-1:k,k-1:k) is a 2-by-2
  84.              diagonal block.  If UPLO = 'L' and IPIV(k) = IPIV(k+1) < 0, then
  85.              rows and columns k+1 and -IPIV(k) were interchanged and
  86.              D(k:k+1,k:k+1) is a 2-by-2 diagonal block.
  87.  
  88.      INFO    (output) INTEGER
  89.              = 0: successful exit
  90.              < 0: if INFO = -i, the i-th argument had an illegal value
  91.              > 0: if INFO = i, D(i,i) is exactly zero.  The factorization has
  92.              been completed, but the block diagonal matrix D is exactly
  93.              singular, and division by zero will occur if it is used to solve
  94.              a system of equations.
  95.  
  96. FFFFUUUURRRRTTTTHHHHEEEERRRR DDDDEEEETTTTAAAAIIIILLLLSSSS
  97.      5-96 - Based on modifications by J. Lewis, Boeing Computer Services
  98.             Company
  99.  
  100.      If UPLO = 'U', then A = U*D*U', where
  101.         U = P(n)*U(n)* ... *P(k)U(k)* ...,
  102.      i.e., U is a product of terms P(k)*U(k), where k decreases from n to 1 in
  103.      steps of 1 or 2, and D is a block diagonal matrix with 1-by-1 and 2-by-2
  104.      diagonal blocks D(k).  P(k) is a permutation matrix as defined by
  105.      IPIV(k), and U(k) is a unit upper triangular matrix, such that if the
  106.      diagonal block D(k) is of order s (s = 1 or 2), then
  107.  
  108.                 (   I    v    0   )   k-s
  109.         U(k) =  (   0    I    0   )   s
  110.                 (   0    0    I   )   n-k
  111.                    k-s   s   n-k
  112.  
  113.      If s = 1, D(k) overwrites A(k,k), and v overwrites A(1:k-1,k).  If s = 2,
  114.      the upper triangle of D(k) overwrites A(k-1,k-1), A(k-1,k), and A(k,k),
  115.      and v overwrites A(1:k-2,k-1:k).
  116.  
  117.      If UPLO = 'L', then A = L*D*L', where
  118.         L = P(1)*L(1)* ... *P(k)*L(k)* ...,
  119.      i.e., L is a product of terms P(k)*L(k), where k increases from 1 to n in
  120.      steps of 1 or 2, and D is a block diagonal matrix with 1-by-1 and 2-by-2
  121.      diagonal blocks D(k).  P(k) is a permutation matrix as defined by
  122.      IPIV(k), and L(k) is a unit lower triangular matrix, such that if the
  123.      diagonal block D(k) is of order s (s = 1 or 2), then
  124.  
  125.                 (   I    0     0   )  k-1
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. ZZZZSSSSPPPPTTTTRRRRFFFF((((3333SSSS))))                                                          ZZZZSSSSPPPPTTTTRRRRFFFF((((3333SSSS))))
  137.  
  138.  
  139.  
  140.         L(k) =  (   0    I     0   )  s
  141.                 (   0    v     I   )  n-k-s+1
  142.                    k-1   s  n-k-s+1
  143.  
  144.      If s = 1, D(k) overwrites A(k,k), and v overwrites A(k+1:n,k).  If s = 2,
  145.      the lower triangle of D(k) overwrites A(k,k), A(k+1,k), and A(k+1,k+1),
  146.      and v overwrites A(k+2:n,k:k+1).
  147.  
  148.  
  149. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  150.      INTRO_LAPACK(3S), INTRO_SCSL(3S)
  151.  
  152.      This man page is available only online.
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.